package com.ssy.lingxi.report.config;

import com.ssy.lingxi.report.service.tally.ITallyReportDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 *  系统启动完成后，执行一些方法的配置类
 * @author ds
 * @date 2021/7/10
 * @version 2.0.0
 */
@Configuration
@DependsOn("languageHolder")
public class ReportServiceInitConfig {
    @Resource
    private ITallyReportDataInitService tallyReportDataInitService;

    @PostConstruct
    public void initMemberService() {
        //针对历史数据进行初始化统计
        tallyReportDataInitService.initStatisticsData();
    }
}
